class SequenceList_sdy:
    def __init__(self):
        self.seqList = []
    def CreateSeqList(self):
        element = input("please enter(input :end):")
        while element != '.':
            self.seqList.append(int(element))
            element = input("please enter(input :end):")
    def FindElement_sdy(self):
        key = int(input("please enter what you want to find:"))
        if key in self.seqList:
            keyPosition = self.seqList.index(key)
            result = keyPosition
        else:
            result = "none"
        return result
    def InsertElement_sdy(self):
        postion = int(input("请输入要插入的位置："))
        key = int(input("请输入要插入的值："))
        print("插入前顺序：", self.seqList)
        self.seqList.insert(postion, key)
        print("插入后顺序：", self.seqList)
    def DeleteElement(self):
        postion = int(input("请输入要删除元素的位置："))
        print("删除前的顺序表：", self.seqList)
        if postion < len(self.seqList) and postion >= 0:
            del self.seqList[postion]
            return self.seqList
        else:
            print("不存在啊老铁，删除个毛线啊")
    def merge(self):
        self.seqList+=list2
    def TraverseElement(self):
        for i in range(len(self.seqList)):
            print(self.seqList[i], end =' ')
    def IsEmpty(self):
        return len(self.seqList) == 0
if __name__ == '__main__':
    list = SequenceList_sdy()
    list2=[1,2]
    while True:
      choose=int(input("输入数字"))
      if choose==1:
       list.CreateSeqList()
      if choose==2:
        list.FindElement_sdy()
        print(list.FindElement_sdy())
      if choose==3:
       list.InsertElement_sdy()
      if choose==4:
       list.DeleteElement()
       print(list.seqList)
      if choose==5:
       list.merge()
       print(list.seqList)
      if choose==6:
          break